
import akka.actor.typed.{ActorRef, ActorSystem, Behavior}
import akka.actor.typed.scaladsl.{AbstractBehavior, ActorContext, Behaviors}
import akka.cluster.typed.{Cluster, Join}
import org.bytedeco.javacpp.indexer.FloatIndexer
import org.bytedeco.javacv.Frame
import org.bytedeco.opencv.opencv_core.Mat
import rs.controller.*

@main def MainAkka() = {
  val sys = ActorSystem(MainController(), "ClusterSystem")
  val cluster = Cluster(sys)
  cluster.manager ! Join(cluster.selfMember.address)
  sys.tell("start")
}



